<?php

/**
 * 
 */
class teacher_programComponents extends sfComponents{
   public function executeStatistics(){
       $this->new_assign_count = LinkTeacherProgramTable::getInstance()->getQueryByStatus(LinkTeacherProgramTable::STATUS_PENDING)->count();
       
       $this->not_filled_program_count = count(ProgramTable::getInstance()->getFilledProgramsQuery(false)->fetchArray());
       
       $this->filled_program_count = count(ProgramTable::getInstance()->getFilledProgramsQuery(true)->fetchArray());
   } 
}